/ Assembly List / LJCNetCommon / NetCommon / Base64BytesToTextBytes

Namespace - LJCNetCommon


Parameters
bytes - The base64 byte array.

Returns

The Text byte array.

Syntax

C#
public static Byte[] Base64BytesToTextBytes(Byte[] bytes)

Decodes a Base64 byte array to a Text byte array. (E)

Example

C#
using LJCNetCommon;
        
// Decodes a Base64 byte array to a Text byte array.
private static void Base64BytesToTextBytes()
{
  // Setup
  byte[] base64Bytes = NetCommon.TextToBase64Bytes("Text");

  // Decodes a Base64 byte array to a Text byte array.
  byte[] textBytes = NetCommon.Base64BytesToTextBytes(base64Bytes);

  // Check the text.
  string text = NetCommon.BytesToText(textBytes);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.